# 'data': {'zhuluxmxx': {
#     'zhuluxmxx': {'zhuanlimc': '一种医用防滑脱外科手套及内层制备方法', 'zhuanlisqh': '2020107642599', 'anjianywzt': '等待实审提案',
#                   'fufenlhbbh': '2006.01,2006.01,2006.01,2006.01,2006.01,2006.01,2006.01,2006.01,2006.01',
#                   'fufenlh': 'C08L67/00,C08L75/04,C08L23/16,C08L9/00,C08L33/14,C08K13/02,C08K3/34,C08K5/053,C08K3/26',
#                   'fenleirq': '2020-09-07', 'zhufenlhbbh': '2016.01', 'fenantjr': '', 'shenqingr': '2020-08-02',
#                   'zhufenlh': 'A61B42/10'}, 'isShow': True}, 'shenqingren': {'shenqingrenList': [
#     {'shenqingrgb': '中国', 'shenqingryb': '430022', 'shenqingrxm': '华中科技大学同济医学院附属协和医院',
#      'shenqingrdz': '湖北省武汉市江汉区解放大道1277号'}], 'isShow': True},
#          'famingren': {'famingrenList': [{'famingrxm': '肖晴霞'}], 'isShow': True}, 'lianxiren': {
#         'lianxirenList': [{'lianxirxm': '肖晴霞', 'lianxirdz': '湖北省武汉市江汉区解放大道1277号', 'lianxiryb': '430022'}],
#         'isShow': True}, 'dailijg': {'dailijgList': [], 'isShow': False},
#          'youxianq': {'youxianqList': [], 'isShow': False}, 'guojisqjd': {'guojisqjdList': [], 'isShow': False},
#          'zhuluxmbg': {'zhuluxmbgList': [], 'isShow': False}}
import redis

redis_con = redis.Redis(host='121.4.69.146', password='xhhg123456',
                        port=6389, db=2, decode_responses=True)  # 连接redis数据库

with open('sqh.txt', 'r', encoding='utf-8') as fr:
    for i in fr:
        sqh = i.strip()
        print(sqh)
        redis_con.sadd("外部接口接口查询", "ZL" + sqh)
